package com.example.gulimallcoupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 秒杀活动商品关联
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:42:24
 */
//@Data
@TableName("sms_seckill_sku_relation")
public class SeckillSkuRelationEntity implements Serializable {
//	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 活动id
	 */
	private Long promotionId;
	/**
	 * 活动场次id
	 */
	private Long promotionSessionId;
	/**
	 * 商品id
	 */
	private Long skuId;
	/**
	 * 秒杀价格
	 */
	private BigDecimal seckillPrice;
	/**
	 * 秒杀总量
	 */
	private BigDecimal seckillCount;
	/**
	 * 每人限购数量
	 */
	private BigDecimal seckillLimit;
	/**
	 * 排序
	 */
	private Integer seckillSort;

	public SeckillSkuRelationEntity() {
	}

	public SeckillSkuRelationEntity(Long id, Long promotionId, Long promotionSessionId, Long skuId, BigDecimal seckillPrice, BigDecimal seckillCount, BigDecimal seckillLimit, Integer seckillSort) {
		this.id = id;
		this.promotionId = promotionId;
		this.promotionSessionId = promotionSessionId;
		this.skuId = skuId;
		this.seckillPrice = seckillPrice;
		this.seckillCount = seckillCount;
		this.seckillLimit = seckillLimit;
		this.seckillSort = seckillSort;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return promotionId
	 */
	public Long getPromotionId() {
		return promotionId;
	}

	/**
	 * 设置
	 * @param promotionId
	 */
	public void setPromotionId(Long promotionId) {
		this.promotionId = promotionId;
	}

	/**
	 * 获取
	 * @return promotionSessionId
	 */
	public Long getPromotionSessionId() {
		return promotionSessionId;
	}

	/**
	 * 设置
	 * @param promotionSessionId
	 */
	public void setPromotionSessionId(Long promotionSessionId) {
		this.promotionSessionId = promotionSessionId;
	}

	/**
	 * 获取
	 * @return skuId
	 */
	public Long getSkuId() {
		return skuId;
	}

	/**
	 * 设置
	 * @param skuId
	 */
	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取
	 * @return seckillPrice
	 */
	public BigDecimal getSeckillPrice() {
		return seckillPrice;
	}

	/**
	 * 设置
	 * @param seckillPrice
	 */
	public void setSeckillPrice(BigDecimal seckillPrice) {
		this.seckillPrice = seckillPrice;
	}

	/**
	 * 获取
	 * @return seckillCount
	 */
	public BigDecimal getSeckillCount() {
		return seckillCount;
	}

	/**
	 * 设置
	 * @param seckillCount
	 */
	public void setSeckillCount(BigDecimal seckillCount) {
		this.seckillCount = seckillCount;
	}

	/**
	 * 获取
	 * @return seckillLimit
	 */
	public BigDecimal getSeckillLimit() {
		return seckillLimit;
	}

	/**
	 * 设置
	 * @param seckillLimit
	 */
	public void setSeckillLimit(BigDecimal seckillLimit) {
		this.seckillLimit = seckillLimit;
	}

	/**
	 * 获取
	 * @return seckillSort
	 */
	public Integer getSeckillSort() {
		return seckillSort;
	}

	/**
	 * 设置
	 * @param seckillSort
	 */
	public void setSeckillSort(Integer seckillSort) {
		this.seckillSort = seckillSort;
	}

	public String toString() {
		return "SeckillSkuRelationEntity{id = " + id + ", promotionId = " + promotionId + ", promotionSessionId = " + promotionSessionId + ", skuId = " + skuId + ", seckillPrice = " + seckillPrice + ", seckillCount = " + seckillCount + ", seckillLimit = " + seckillLimit + ", seckillSort = " + seckillSort + "}";
	}
}
